﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000247 RID: 583
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueHistoryCellInfo : IMessage<ChessRogueHistoryCellInfo>, IMessage, IEquatable<ChessRogueHistoryCellInfo>, IDeepCloneable<ChessRogueHistoryCellInfo>, IBufferMessage
	{
		// Token: 0x170007BC RID: 1980
		// (get) Token: 0x06001A61 RID: 6753 RVA: 0x0004C315 File Offset: 0x0004A515
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueHistoryCellInfo> Parser
		{
			get
			{
				return ChessRogueHistoryCellInfo._parser;
			}
		}

		// Token: 0x170007BD RID: 1981
		// (get) Token: 0x06001A62 RID: 6754 RVA: 0x0004C31C File Offset: 0x0004A51C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueHistoryCellInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007BE RID: 1982
		// (get) Token: 0x06001A63 RID: 6755 RVA: 0x0004C32E File Offset: 0x0004A52E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueHistoryCellInfo.Descriptor;
			}
		}

		// Token: 0x06001A64 RID: 6756 RVA: 0x0004C335 File Offset: 0x0004A535
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueHistoryCellInfo()
		{
		}

		// Token: 0x06001A65 RID: 6757 RVA: 0x0004C33D File Offset: 0x0004A53D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueHistoryCellInfo(ChessRogueHistoryCellInfo other) : this()
		{
			this.roomId_ = other.roomId_;
			this.cellId_ = other.cellId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001A66 RID: 6758 RVA: 0x0004C36E File Offset: 0x0004A56E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueHistoryCellInfo Clone()
		{
			return new ChessRogueHistoryCellInfo(this);
		}

		// Token: 0x170007BF RID: 1983
		// (get) Token: 0x06001A67 RID: 6759 RVA: 0x0004C376 File Offset: 0x0004A576
		// (set) Token: 0x06001A68 RID: 6760 RVA: 0x0004C37E File Offset: 0x0004A57E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x170007C0 RID: 1984
		// (get) Token: 0x06001A69 RID: 6761 RVA: 0x0004C387 File Offset: 0x0004A587
		// (set) Token: 0x06001A6A RID: 6762 RVA: 0x0004C38F File Offset: 0x0004A58F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CellId
		{
			get
			{
				return this.cellId_;
			}
			set
			{
				this.cellId_ = value;
			}
		}

		// Token: 0x06001A6B RID: 6763 RVA: 0x0004C398 File Offset: 0x0004A598
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueHistoryCellInfo);
		}

		// Token: 0x06001A6C RID: 6764 RVA: 0x0004C3A6 File Offset: 0x0004A5A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueHistoryCellInfo other)
		{
			return other != null && (other == this || (this.RoomId == other.RoomId && this.CellId == other.CellId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001A6D RID: 6765 RVA: 0x0004C3E4 File Offset: 0x0004A5E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RoomId != 0U)
			{
				num ^= this.RoomId.GetHashCode();
			}
			if (this.CellId != 0U)
			{
				num ^= this.CellId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001A6E RID: 6766 RVA: 0x0004C43C File Offset: 0x0004A63C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001A6F RID: 6767 RVA: 0x0004C444 File Offset: 0x0004A644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001A70 RID: 6768 RVA: 0x0004C450 File Offset: 0x0004A650
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RoomId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.RoomId);
			}
			if (this.CellId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.CellId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001A71 RID: 6769 RVA: 0x0004C4AC File Offset: 0x0004A6AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RoomId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RoomId);
			}
			if (this.CellId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CellId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001A72 RID: 6770 RVA: 0x0004C504 File Offset: 0x0004A704
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueHistoryCellInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RoomId != 0U)
			{
				this.RoomId = other.RoomId;
			}
			if (other.CellId != 0U)
			{
				this.CellId = other.CellId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001A73 RID: 6771 RVA: 0x0004C554 File Offset: 0x0004A754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001A74 RID: 6772 RVA: 0x0004C560 File Offset: 0x0004A760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.CellId = input.ReadUInt32();
					}
				}
				else
				{
					this.RoomId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000B0D RID: 2829
		private static readonly MessageParser<ChessRogueHistoryCellInfo> _parser = new MessageParser<ChessRogueHistoryCellInfo>(() => new ChessRogueHistoryCellInfo());

		// Token: 0x04000B0E RID: 2830
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000B0F RID: 2831
		public const int RoomIdFieldNumber = 4;

		// Token: 0x04000B10 RID: 2832
		private uint roomId_;

		// Token: 0x04000B11 RID: 2833
		public const int CellIdFieldNumber = 5;

		// Token: 0x04000B12 RID: 2834
		private uint cellId_;
	}
}
